package com.ejd.web.bo;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

import com.ejd.utils.CommonUtil;
import com.ejd.web.bo.Product;

public class AbstractGoods extends Product implements Serializable {
	private Double dfield1;
    private Double dfield2;
    private Double dfield3;
    private Double dfield4;
    private Double dfield5;
    private String sfield1;
    private String sfield2;
    private String sfield3;
    private String sfield4;
    private String sfield5;
    private String sfield6;
    private String sfield7;
    private String sfield8;
    private String sfield9;
    private String sfield10;
    
    private String image1;
    private String image2;
    private String image3;
    private String image4;
    private String image5;
    private String image6;
    private String image7;
    private String image8;
    private String image9;
    private String image10;
    private String showOn;
    
    private List<String> showOnList;
	public AbstractGoods(){
		
	}
	public Double getDfield1() {
		return dfield1;
	}
	public void setDfield1(Double dfield1) {
		this.dfield1 = dfield1;
	}
	public Double getDfield2() {
		return dfield2;
	}
	public void setDfield2(Double dfield2) {
		this.dfield2 = dfield2;
	}
	public Double getDfield3() {
		return dfield3;
	}
	public void setDfield3(Double dfield3) {
		this.dfield3 = dfield3;
	}
	public Double getDfield4() {
		return dfield4;
	}
	public void setDfield4(Double dfield4) {
		this.dfield4 = dfield4;
	}
	public Double getDfield5() {
		return dfield5;
	}
	public void setDfield5(Double dfield5) {
		this.dfield5 = dfield5;
	}
	public String getSfield1() {
		return sfield1;
	}
	public void setSfield1(String sfield1) {
		this.sfield1 = sfield1;
	}
	public String getSfield2() {
		return sfield2;
	}
	public void setSfield2(String sfield2) {
		this.sfield2 = sfield2;
	}
	public String getSfield3() {
		return sfield3;
	}
	public void setSfield3(String sfield3) {
		this.sfield3 = sfield3;
	}
	public String getSfield4() {
		return sfield4;
	}
	public void setSfield4(String sfield4) {
		this.sfield4 = sfield4;
	}
	public String getSfield5() {
		return sfield5;
	}
	public void setSfield5(String sfield5) {
		this.sfield5 = sfield5;
	}
	public String getSfield6() {
		return sfield6;
	}
	public void setSfield6(String sfield6) {
		this.sfield6 = sfield6;
	}
	public String getSfield7() {
		return sfield7;
	}
	public void setSfield7(String sfield7) {
		this.sfield7 = sfield7;
	}
	public String getSfield8() {
		return sfield8;
	}
	public void setSfield8(String sfield8) {
		this.sfield8 = sfield8;
	}
	public String getSfield9() {
		return sfield9;
	}
	public void setSfield9(String sfield9) {
		this.sfield9 = sfield9;
	}
	public String getSfield10() {
		return sfield10;
	}
	public void setSfield10(String sfield10) {
		this.sfield10 = sfield10;
	}
	public String getImage1() {
		return image1;
	}
	public void setImage1(String image1) {
		this.image1 = image1;
	}
	public String getImage2() {
		return image2;
	}
	public void setImage2(String image2) {
		this.image2 = image2;
	}
	public String getImage3() {
		return image3;
	}
	public void setImage3(String image3) {
		this.image3 = image3;
	}
	public String getImage4() {
		return image4;
	}
	public void setImage4(String image4) {
		this.image4 = image4;
	}
	public String getImage5() {
		return image5;
	}
	public void setImage5(String image5) {
		this.image5 = image5;
	}
	public String getImage6() {
		return image6;
	}
	public void setImage6(String image6) {
		this.image6 = image6;
	}
	public String getImage7() {
		return image7;
	}
	public void setImage7(String image7) {
		this.image7 = image7;
	}
	public String getImage8() {
		return image8;
	}
	public void setImage8(String image8) {
		this.image8 = image8;
	}
	public String getImage9() {
		return image9;
	}
	public void setImage9(String image9) {
		this.image9 = image9;
	}
	public String getImage10() {
		return image10;
	}
	public void setImage10(String image10) {
		this.image10 = image10;
	}
	public String getShowOn() {
		return showOn;
	}
	public void setShowOn(String showOn) {
		this.showOn = showOn;
	}
	public void setShowOnList(List<String> showOn) {
	     String str = "";  
	     List<String> tempList = this.getShowOnList();
	     if (null != tempList && !(tempList.isEmpty())) {
		     for(int i = 0; i < tempList.size(); i++) {  
		         str = str + tempList.get(i);
		         if (i < tempList.size() -1 ) {
		        	 str = str + ",";
		         }
		     }  
	     }
	   
	     this.setShowOn(str);         
	}
	public List<String> getShowOnList() {
		List<String> list  = new ArrayList<String>();
		try {
           if (CommonUtil.isNotEmpty(this.getShowOn())) {
           
           String array[] = this.getShowOn().split(",");
           for(int i = 0; i < array.length; i++) {
           	list.add(array[i]); 
           }
           }
		} catch (Exception e) {
     
		} 

		return list;
	}
}
